/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chapter5.creational.prototypepattern;

/**
 *
 * @author ASUS
 */
public class Person implements Prototype{
    String name;
    
    public Person(String name)
    {
        this.name = name;
    }
    
    @Override
    public Prototype doClose() {
        return new Person(name);
    }
    
    public String toString()
    {
        return "The person is named" + name;
    }
    
}
